Make compatible with Python 3.2