I would have loved to do this.  But I need to be able to have the JSON encoder be able to write this out to the arguments to a task, and I didn't see how the standard JSON parser would deal with arbitrary objects.  And I didn't want to try to define a custom serializer for celery -- just didn't seem worth it.  Did I miss an easier way to do this (short of switching to pickle)?