compatibility with Python 2.6

Don't ask me why, but my system still has Python 2.6.

The `.major` notation has been added in [2.7](http://docs.python.org/2/library/sys.html#sys.version_info) and since everything works just fine with this small change, maybe it's worth having it.