Make sure not_ overrides work at python API level