Make type_inspect.py Python 2 compatible
Make type_inspect.py Python 2 compatible

Summary: HG Windows still uses Python 2. This unblocks its build.

Reviewed By: andll

Differential Revision: D28008683

fbshipit-source-id: b08c528b2c8444f1061e0a52c71e987b2aa49d51

facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift