Fix import_logs python tests.