pep8 for migrations
add reason logging; closes #1