Python: Don't use named tuples to get the version

sys.version_info.major is only possible on 2.7+ or so.
Therefore, we now use [0] instead.