python 2.6 compatibility

working on #60
new development snapshot