diff --git a/.flake8 b/.flake8
index 5af881362b12e05fde63ab164df11f3652e689ac..8359795762f6d574173b5db6baa5d8978c4c3ad7 100644
--- a/.flake8
+++ b/.flake8
@@ -9,9 +9,3 @@ ignore =
     F403,
     # F405 'XXXX' may be undefined, or defined from star imports
     F405,
-    # F821 undefined name 'constant'
-    F821,
-    # F821 undefined name 'os'
-    F821,
-    # F821 undefined name 'unicode'
-    F821,
diff --git a/src/Python/IO/VTPReader.py b/src/Python/IO/VTPReader.py
index e8f5a4833746fd8ed1622529f471a6bfc57145d7..f1a6f30be318d295fc85dbbd06febdb9afb3b0d2 100755
--- a/src/Python/IO/VTPReader.py
+++ b/src/Python/IO/VTPReader.py
@@ -1,7 +1,9 @@
 import vtk
+
+filename = "archive.vtp"
+
 reader = vtk.vtkXMLPolyDataReader()
-path = os.path.join(constant.BASE_DIR, "archive.vtp")  # Archive path
-reader.SetFileName(path)
+reader.SetFileName(filename)
 reader.Update()
 
 mapper = vtk.vtkPolyDataMapper()
diff --git a/src/Python/Utilities/Variant.py b/src/Python/Utilities/Variant.py
index 6f0fd52f95cfc4a2418a5b9b59bdf4e5aa3c45ab..20cbad3eb63223d9551c958f01328d6e2375d1da 100755
--- a/src/Python/Utilities/Variant.py
+++ b/src/Python/Utilities/Variant.py
@@ -6,7 +6,7 @@ import sys
 if sys.hexversion >= 0x03000000:
     unicodeEtre = '\xeatre'  # unicode in Python 3
 else:
-    unicodeEtre = unicode('\xeatre', 'latin1')
+    unicodeEtre = unicode('\xeatre', 'latin1')  # noqa: F821
 
 #
 # Basic vtkVariant usage