code: def parse(filename, format=u"Jæren Sparebank", encoding="latin1"):
      
      Class = formats[format.lower()]
  
      if PY3:
          kw = {"encoding": encoding}
      else:
          kw = {}
  
      with open(filename, "rt", **kw) as f:
          return Class.csv_to_transactions(f)
docs: Parses bank CSV file and returns Transactions instance.
  
      Args:
          filename: Path to CSV file to read.
          format: CSV format; one of the entries in `elv.formats`.
          encoding: The CSV file encoding.
  
      Returns:
          A ``Transactions`` object.