def sendcmd(self, cmd='<STR_LIT>', timeout=<NUM_LIT:1.0>):
import time<EOL>if self.write(cmd):<EOL><INDENT>while self.get_response() == '<STR_LIT>' and timeout > <NUM_LIT:0>:<EOL><INDENT>time.sleep(<NUM_LIT:0.1>)<EOL>timeout -= <NUM_LIT:0.1><EOL><DEDENT><DEDENT>return self.get_lines()<EOL>
send command, wait for response. returns response from modem.