def get_input(p, fn=id): with open(p) as f: return [fn(line) for line in f.readlines()]