Validate conditions, Python style.