Python Make Byte Array To Stream