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

This change fixes two things:

- Using `sys.version_info` instead of `sys.version` (the string `sys.version` should not be used as there is no guarantee the version number is at the beginning of the string).
- Comparing equal or higher than 3; presumably that's what you meant here because otherwise you're checking whether it's Python 4+.