split model.py script, added LSA to model