cleaned up pyflakes errors