Right now everything exists as a series of Jupyter notebooks. Let's streamline the reused code into a module.