Using a dictionary instead of a list for each value of the comment_code dict