Fix for Python3.2 compatibility