'For raw_input builtin function emulation'

def raw_input_replacement(self, prompt=''):

    self.widget_proxy.wait_input(prompt)
    self.input_condition.acquire()
    while (not self.widget_proxy.data_available()):
        self.input_condition.wait()
    inp = self.widget_proxy.input_data
    self.input_condition.release()
    return inp
