upgrading simulnet.py with Losst