I have written a python read script which has the following code`
def read_serial(): while True: # prepare for response out = \'\'