Making chenges for python3 compatibility. 

The dependencies are a bit hard to install on Ubuntu 12.04, but they're all available. Runs tests just fine under Python 3.2 now.

Closes #23.