python get dictionary value by key variable