Python Compruebe si el atributo existe en clase
if hasattr(obj, 'propertyName'):
...
M. Alban Landry
if hasattr(obj, 'propertyName'):
...