comm_keylist_dict was wrongly initialized as a list. Initialize it as a dict instead