Note: Since this article was written, CloudPickle has been updated to do everything that YCCloudPickle was created to do. I now use CloudPickle in all circumstances, and recommend you use it to. This article remains for historical interest only.
Python Function Serialisation with YCCloudPickle