Random noodling
Make this work with multiple code sections.
PyCon 2013 version