upgrade the pickle to protocal 2.

compile code before running.