def entropy(args):
    '\n    %prog entropy kmc_dump.out\n\n    kmc_dump.out contains two columns:\n    AAAAAAAAAAAGAAGAAAGAAA  34\n    '
    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))))
%prog entropy kmc_dump.out

kmc_dump.out contains two columns:
AAAAAAAAAAAGAAGAAAGAAA  34
def entropy(args):
    '\n    %prog entropy kmc_dump.out\n\n    kmc_dump.out contains two columns:\n    AAAAAAAAAAAGAAGAAAGAAA  34\n    '
    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))))