Enables compatibility with python 3.x

This change will enable the module to be installed with python 2.6+ and python 3+ but it wont work with python 2.5. Do with it as you please.