with urllib.request.urlopen('http://localhost/test') as response: process = subprocess.Popen(f'hexdump -C'.split(), stdin=response, text=False)