Dependency free XML file indexing and iterative reading for Python