Python verifique se o atributo existe na aula

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