Merge pull request #52 from wardi/master

Python 2.6 compatibility fix
Merge pull request #53 from wardi/master

Dataset creation fix and Python 2.6 fix