code for workshop at PyCon 2014 Montreal