fix cPickle.dump simple function error

let spartan be able to use ipython defined simple function as map, reduce and
shuffle parameters