This is great! It's so hard to find bugs in software tools because the conventional wisdom is that "it's never a bug in the compiler."
Interesting that you had to create two patches for python 2.x and 3.x. (Frustrating, no?)
Seems like you were able to get this submitted and fixed fairly quickly; the Python guys seem like a welcoming group.
Has anyone else had experience contributing to this particular project?