dPickle: avoid using a custom pickler for partial functions python>2.6