This is an interesting, and probably quite efficient, way to parse a file, but it's not very readable. Especially for a junior-level developer who probably hasn't had much contact with the functional tools available in Python. I know this isn't intended to be a primer for functional programming in Python, but it probably bears some explanation or a change to make it more readable.