import ofxparse import codecs import io with open('tests/files/transactions-2.ofx', 'rb') as f: ofx = ofxparse.OfxParser.parse(f) import pdb;pdb.set_trace() print(ofx)