code: def print_huffman_code_cwl(code,p,v):
      
      cwl = 0.0
      for k,_v in code.items():
          print(u"%s -> %s"%(k,_v))
          cwl += p[v.index(k)]*len(_v)
      print(u"cwl = %g"%cwl)
      return cwl,code.values()
docs: code - code dictionary with symbol -> code map, p, v is probability map