Return boolean from __bool__ in python 3