updated stuff to start on py3 compat
updated __nonzero__ to __bool__ for py3 capatibility