Python Dictionary Stack Overflow Ai