with Popen(['gunicorn', 'TS.wsgi', '-b', 'localhost:65535', '--log-level', 'debug'], stdout=PIPE) as p:
for line in iter(p.stdout.readline, b''):
print(f">>> {line.decode()}")
p.stdout.close()
p.wait()