Minor syntax fixes
Fixed Python 2.6 support #39