Restore compatibility with Python 3.2