Added lsf.py

To be re-sctructured