Working on a project that requires that I am able to pickle the container object at any point, since we expect it to fail on external conditions quite frequently and be able to
Found a very similar question here, with an answer that worked for me:
How to stop attributes from being pickled in Python
edit: used this answer: How to stop attributes from being pickled in Python