code: def writeArray(fp, a, delim = " ", nl = 1):
      
      for i in a:
          fp.write("%f%s" % (i, delim))
      if nl:
          fp.write("\n")
docs: Writes a sequence a of floats to file pointed to by file pointer.