Fixes Python3 issues