convert dictionary values to array python