Changes suggested by Jim fulton: - Moved most imports to the top, for faster loadingf when using ni. - Always open the temp file in binary mode.
Changes suggested by Jim fulton:
- Moved most imports to the top, for faster loadingf when using ni.
- Always open the temp file in binary mode.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator