Merge pull request #187 from MaggieQi/master

fix scan base array error
fix cPickle.dump simple function error
let spartan be able to use ipython defined simple function as map, reduce and
shuffle parameters