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

Hey,

The previously used `platform.version()` method returns the system’s release version as string instead of the Python version on some platforms. This is changed to the major number from `sys.version_info` and enables Python 3 support.

Please merge this to enable Python 3 support on all platforms. :)

Thanks!