python interactive 2d graphics