Hasattr Function In Python Example