Update lshellmodule/lshell.py

Fix for python 2.3