Solving py3 issues