https://alezinhacris.blogspot.com/2024/06/python-36-pickling-custom-procedure.html
Python 3.6 Pickling Custom Procedure