Fix #195: Add support for Python 3.2 and 3.3 and enable tests on them.

Thanks to @senden9 for most of these fixes. Rebasing #187 proved to be more work than just rewriting the patch to the new code.