The following code apparently tries to write to a null pointer:
import clr
import pickle
from System import Exception
pickle.dumps(Exception())
I'm investigating, where it fails exactly but I'm open to hints :)
Small addition: This works fine for simple objects like System.Object()