Hasattr Function In Python Definition In Coding