fix python3 issue with OrderedDict (works on py2)