Mod: add py3k support

Python 2.5 support was dropped in this commit.

There's no unit test code, but `command-line.py` in examples directory works fine.

Fix for #17