Python like many other dynamic programming languages can be extended. Objects and definitions can be modified at runtime. This gives the developer great power but this power comes at a price. During the execution two instances of the same object can have different properties. This is why python accesses these …