def start_pty_request(self, channel, term, modes):
request = self.dummy_request()<EOL>request._sock = channel<EOL>request.modes = modes<EOL>request.term = term<EOL>request.username = self.username<EOL>self.pty_handler(request, self.client_address, self.tcp_server)<EOL>self.transport.close()<EOL>
Start a PTY - intended to run it a (green)thread.