Fixes for Python 3.
Release 0.3.11.