def extract_arguments(fh):
    expressions = []
    for line in fh:
        line = line.strip()
        if line == "#":
            break
        expressions.append(line)
    return expressions

# if __name__ == "__main__":
#     input_path = sys.argv[1]
#     with open(input_path, 'r') as fh: 
#     inputs = extract_arguments(fh)
#     f(inputs)