Change dictionaries to lists