python flatten dict values to list