Python 2.6 doesn't like sys.version_info.major