fix pickle file mode
Merge pull request #9 from vlukes/master

fix pickle file open mode