Change named attribute for sys.version_info into a numbered index

This will make it work in Python versions earlier than 2.7/3.1.