Pseudo-tty handler for docker Python client
