cleanup to fix pyflakes errors