Python Substring Key Match In Poker