Fix problems python 3