Compatibility for Python 3.1.
Release v0.5.1.
Bump version to v0.5.1-git.