def startConversation(agentPicSource): print '--> start conversation' if not findAgent(agentPicSource): return False mouse.doubleClick() print 'wait until conversation start' while not findInfo(): time.sleep(0.1) print '<-- start conversation\n' return True