diff --git a/import_csv.py b/import_csv.py
index 260373d293d262838c25e019d5cf1eafd7f8e84e_aW1wb3J0X2Nzdi5weQ==..dc2e78e7e39376242ee880b6e9e841c4426a8977_aW1wb3J0X2Nzdi5weQ== 100755
--- a/import_csv.py
+++ b/import_csv.py
@@ -43,8 +43,5 @@
 
     # Do "o.login(ODOO_DB, 'admin', ODOO_ADMIN_PASS)" by hand here so we can
     # grab the session ID (odoorpc does not store it anywhere).
-    db = database
-    login = login
-    password = password
     data = o.json(
         "/web/session/authenticate",
@@ -49,8 +46,8 @@
     data = o.json(
         "/web/session/authenticate",
-        {"db": db, "login": login, "password": password},
+        {"db": database, "login": login, "password": password},
     )
     session_id = data["result"]["session_id"]
     uid = data["result"]["uid"]
     if uid:
         context = data["result"]["user_context"]
@@ -52,9 +49,9 @@
     )
     session_id = data["result"]["session_id"]
     uid = data["result"]["uid"]
     if uid:
         context = data["result"]["user_context"]
-        o._env = odoorpc.env.Environment(o, db, uid, context=context)
+        o._env = odoorpc.env.Environment(o, database, uid, context=context)
         o._login = login
         o._password = password
     else: