Modified to support Python 2.6/2.7 #120
More 2.6 updates
Merge pull request #212 from shermdog/python-2.6

Python 2.6 support