urllib expecting bytes, not str in python 3