Python Write Array To Binary File