use pickle instead of json

use pickle instead of json, match the server rewrite with python3,
socket communicating is more reliable.
Merge pull request #2 from learning/dev

use pickle instead of json