total_size = os.path.getsize(filename)
with open(filename, 'r') as f:
    context = ET.iterparse(f, events=('end',), tag='Record')
for event, elem in context:
    pass
Iterating XML with lxml in Python: how to know how much of the input file has been read?