hg-fast-export.py: restore compatibility with older python