Python sprawdź, czy atrybut istnieje w klasie

if hasattr(obj, 'propertyName'):
	...
M. Alban Landry