Get String Index Python Dictionary Operations