While it has been possible to read/write PDb directly from/to arbitrary streams, the stream interface is not exposed to Python yet.