bugfix in python 3