python flatten dictionary values to list