__nonzero__ has been replaced by __bool__ in Python 3.x Here is a patch that fix the issue for Python 2.x
Bug watches keep track of this bug in other bug trackers.