python leetcode 27. Remove Element

NoSuchKey