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