def handle_command(self):
command = string.strip(self.fd.readline())
time.sleep(0.02)
if command in self.commands.keys():
self.commands[command]()