Added Python 2 to 3 conversion as part of setup.py

* This seems to fix a lot of the issues with installing on Python 3, however it will probably need more testing to make sure that it works as it should on all of the supported platforms.