Compatibility with python 3.2