The library that is meant to be my own Python package that provides utility tools for Data Science and AI using common libraries. It's used and extended by myself when I'm running to problem that might be more common than me.
Check how the current deque behaves under a big number of elements in the memory in hundreds od thousands and millions. Verify especially loading and adding new elements when the memory is full.
To provide more flexible ability to resume learning of models implement the save and load to the pickle file. Keep in mind that the loading should contain hash checker as loading not-known pickle may be dangerous: https://docs.python.org/3/library/pickle.html#module-pickle