Updated to support python2.6 and python2.7; added a simple test
Merge pull request #1 from cnelson/python2_compatibility

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