What's wrong with  return int(bool) ?