fix py3 - sort dict of pyfiles