Only save/restore terminal settings if stdin is a tty
Send EOF when stdin closes
Remove dead code
attach_websocket() -> attach_socket(ws=True)
Update docker-py