Let JSON object accept bytes or let urlopen output strings Let JSON object accept bytes or let urlopen output strings python-3.x python-3.x