refactor from_list_to_dic as import module