fixed problem with python 3