Python library for reading and writing Java datastreams