Feature Request: Ensure Compatibility with Python 2.7

Type hinting is breaking compatibility with Python2.6+

Make sure is compatible.