Dumping state via cPickle. Fixed closure creation and printing.