It uses "long", which is not available in py3k.

GL/VERSION/GL_1_5.py, line 77

I propose to use "integer_types" as in six.py:

if sys.version_info[0] >= 3:
    integer_types = int,
else:
    integer_types = int, long

Regards,
  Almar