TypeError: can't use a string pattern on a bytes-like object,print(json.loads(line.decode()))