We should use OrderedDict instead of plain dict if we want to rely on the ordering of its items.
Also don't subtract 1 when getting the autopart type, we subtract 1 in the input method and also the default value is set to reflect that.
Also looks good.
- Chris