def getAttrOrNone(obj, prop): return getattr(obj, prop, None)