test: move test_pickle to the python unittest directory
python unittest: add a test for pickling partials
dPickle: avoid using a custom pickler for partial functions python>2.6