An alternative for lsv.py in python 2.2