python console simulation