Fix for Python 3.1 compatibility.

Fix for issue #1105 where the backwardcompat features are required
for Python 3.1. Causes failures in automated tox builds with a
py31 target.