Grabs the Python version instead of the platform version, enables Python 3 support

The previously used `platform.version()` method returns the system’s release version as string instead of the Python version. This is changed to the major number from `sys.version_info` and enables Python 3 support.