Make parse-mime-types.py work in both Python 3.3 and 2.7