code: def readlines(filepath):
      
      with open(filepath, 'rt') as f:
          lines = f.readlines()
          lines = map(str.strip, lines)
          lines = [l for l in lines if l]
      return lines
docs: read lines from a textfile
      :param filepath:
      :return: list[line]