Fixed Python 3.x version check by using sys.version_info

The string `sys.version` shouldn't be used as there's no guarantee the version number is at the beginning of the string. Instead `sys.version_info` should be used. I also fixed the check as I think you meant "equal or higher than 3" here.