Prevents pickling instancemethods