pub fn HuffmanCodes(input: &str) -> PyResult<HashMap<char, String>>
Generate Huffman codes for the input string
input