> A function cannot be pickled (?).

Yes it can, if it is importable. It cannot be pickled if it is defined in
the closure of a method or function.