Implemented a workaround to support Python3's threading interface

This is a temporary workaround of course!
Updated included headers path in some files
Updated setup.py to handle generated API headers