python leetcode 292. Nim Game

NoSuchKey