'Prepare a python script
Args:
cmd (str): command to execute the example with all flags (including python)
timeout (int): time in seconds the script has to survive'

def __init__(self, cmd, timeout):

    threading.Thread.__init__(self)
    self.cmd = cmd
    self.timeout = timeout
