WIP: dict learn pep8

lots of pep8 fixes all around

<wip>