Update lsm.py

online learning