def to_dict(self):
        as_dict = dict(self.payload or ())
        as_dict['message'] = self.message
        return as_dict
Takes an int and converts it to a bool in the basis of 1=True, 0=False.
dataset/ETHPy150Open jeffknupp/sandman/sandman/exception.py/InvalidAPIUsage.to_dict--crossover with--dataset/ETHPy150Open gtaylor/django-eve-db/eve_db/ccp_importer/importers/importer_classes.py/parse_int_bool