Python Write Binary File