converting a dictionary into a list,list(flatten(elements))