Python Pickle protocol for Java