Create lsm.py