get values from ordered dictionary python