Clean up more
Split out the file reading part.
Dedent.
Use itertools to make the control flow clearer. Now I can change things...
Actually, use the right names to begin with. Yi was right :)