simulator in python :-)