Use the del keyword
del
if 'l' in globals(): del l
You should use the global key word when declaring the variable l:
global
l
global l #declare the variable as globall = 'foo'