Fixed the things pyflakes had to say. Hopefully this makes the failures stop.