code formatting: fixed block comments
code formatting: line continuation indentation
remove functions that are duplicates

One of them had two different implmenentations.
comment out unreferenced code
don't shadow function argument variable k
minor formattings change
add flake8:noqa because of tabs after comma
add noqa comment to all star imports
comment out all unused imports
add setup.cfg ignoring some errors in Flake8
Merge pull request #6 from thomasf/flake8-no-warnings

Code cleanup