Encountering Some Python Trickery