Fixed __nonzero__ for Python 2