[python] How to implement __iter__(self) for a container object (Python)