Do you think you could invert this if..else for readability? "if project is None or cls in ... else ..."