Python Write Binary Blob To File