code: def entropy(args):
      
      p = OptionParser(entropy.__doc__)
      p.add_option("--threshold", default=0, type="int",
                  help="Complexity needs to be above")
      opts, args = p.parse_args(args)
  
      if len(args) != 1:
          sys.exit(not p.print_help())
  
      kmc_out, = args
      fp = open(kmc_out)
      for row in fp:
          kmer, count = row.split()
          score = entropy_score(kmer)
          if score >= opts.threshold:
              print(" ".join((kmer, count, "{:.2f}".format(score))))
docs: %prog entropy kmc_dump.out
  
      kmc_dump.out contains two columns:
      AAAAAAAAAAAGAAGAAAGAAA  34