exceptions -> Python 3, PEP 8, changed cPickle to pickle where it was needed