Fixed a problem with python 3.2