dynamic_collections.py example not working in SVN?

I tried to run the dynamic_collections.py example in the source directory (SVN revision 5002) but got the following error:

Traceback (most recent call last):
   File "dynamic_collection.py", line 23, in <module>
     transOffset = ax.transData,
TypeError: __init__() got multiple values for keyword argument 'numsides'

I removed the numsides=5 keyword argument (line 16) from dynamic_collections.py, and while it lets the example run without error, the "dynamic" aspect doesn't work. That is, the initial plot with a single point appears but pressing 'a' or 'd' does nothing (when it should add or delete a point).

Any ideas on how to get this working?