python iterate dictionary with list as value