Use index of version_info tuple rather than named (added in 2.7)

I'm still using python2.6 and the named tuple for version_info wasn't added until 2.7. This uses the index of the tuple instead for checking between 2 and 3.