diff --git a/scapy/arch/linux.py b/scapy/arch/linux.py
index b97548eece886a61bddfe99e189ae96687238cad..4f5bb13155b2d1121ae58e614229780bace397a5 100644
--- a/scapy/arch/linux.py
+++ b/scapy/arch/linux.py
@@ -66,13 +66,13 @@ RTF_REJECT = 0x0200
 
 LOOPBACK_NAME="lo"
 
-with os.popen("tcpdump -V 2> /dev/null") as f:
-    if f.close() >> 8 == 0x7f:
+with os.popen("tcpdump -V 2> /dev/null") as _f:
+    if _f.close() >> 8 == 0x7f:
         log_loading.warning("Failed to execute tcpdump. Check it is installed and in the PATH")
         TCPDUMP=0
     else:
         TCPDUMP=1
-        
+del(_f)
     
 
 def get_if_raw_hwaddr(iff):
diff --git a/scapy/layers/all.py b/scapy/layers/all.py
index f6518cd3a5133ee3057b7318751898fdf2737681..6251c2a594fe6c00cfc7be66889ea6a4308dcc6a 100644
--- a/scapy/layers/all.py
+++ b/scapy/layers/all.py
@@ -11,9 +11,9 @@ def _import_star(m):
     for k,v in mod.__dict__.iteritems():
         globals()[k] = v
 
-for l in conf.load_layers:
-    log_loading.debug("Loading layer %s" % l)
-    _import_star(l)
+for _l in conf.load_layers:
+    log_loading.debug("Loading layer %s" % _l)
+    _import_star(_l)