connection.py: add get_pty option to exec_command, recv_exit_status
add default timeout for recv_exit_status