Python code from the undergrad years