pythonized getTenantDefinitions(); huge cleanup