Cleaning up python notebook