reworked python.html to use OrderedDict