__nonzero__ became __bool__ in python3