pep8 compliance
fixed some imports and other things spewed up by pyflakes