Maybe just use sys.version_info[:3] and then use tuple comparisons below.  This will break down if they ever release a `2.10`, for example.