py: Improve stream_read so it doesn't need to alloc 2 bits of heap.