Code, notebook, module, script for good python practises

Idea: code something useful for experimental psychology, document
typical flow, point to refactoring opportunities, explain benefits,
press into module layout, add tests, run tests.