Python Dictionary Find Ifs