Updated to support python2.6 and python2.7; added a simple test

Hola,

This PR makes this package compatible with python 2.6 and python 2.7

I didn't bump the version number in setup.py, as I wasn't sure what your methodology for versioning is.