Add initial version of pickle protocol