fixed  1820:uncaught pickling error with shell and app engine, thanks Alan