got lsvms.py to a working state