__bool__ replaces __nonzero__ in Py3