fixing py 3 encoding