How to write interface (contract) for object property (attribute) existence in python? How to write interface (contract) for object property (attribute) existence in python? python-3.x python-3.x