how to write integers to a file,"file.write('%s %s %s' % (ranks[a], ranks[b], count))"