code: def aln2logodata(aln):
      
      handle = StringIO(aln.format('fasta'))
      logodata = read_logodata(handle)
      handle.close()
      return logodata
docs: Get weblogo data for an alignment object.
  
      Returns a list of tuples: (posn, letter_counts, entropy, weight)