I have implemented an iterable class in python3.8 following this post implementing the weakref() function in order to be able to delete elements of the class, a
weakref()