fixed sketch.py bugs, should run with command {python sketch.py}