This is to remove None and clean other arguments
        :param kwargs:
        :return:

def _clean_arguments(kwargs):
        """
        This is to remove None and clean other arguments
        :param kwargs:
        :return:
        """
        if not isinstance(kwargs, dict):
            return kwargs
        for k in list(kwargs.keys()):
            if kwargs[k] is None:
                kwargs.pop(k)
            elif kwargs[k] is False:
                kwargs[k] = 0
            elif kwargs[k] is True:
                kwargs[k] = 1
        return kwargs