Convert Dictionary To Array Python