I wrote it to be Python 2.6 compatible, which I found to be the (unstated) minimum version scholar.py runs with. If you're willing to raise the minimum version to 2.7, we could use OrderedDict for sorting the keys (not alphabetically, which json can do via sort_keys=True, but rather in the logical order). 2.7 would also allow us to simplify some other code and use argparse, which opens path to newer versions than Python 3.2.
I wrote it to be Python 2.6 compatible, which I found to be the (unstated) minimum version scholar.py runs with. If you're willing to raise the minimum version to 2.7, we could use OrderedDict for sorting the keys (not alphabetically, which json can do via sort_keys=True, but rather in the logical order). 2.7 would also allow us to simplify some other code and use argparse, which opens path to newer versions than Python 3.2.