Python Writing Array Into Ascii Code