'allow setting of a custom stat'

def set_custom_stats(self, which, what, host=None):

    if (host is None):
        host = '_run'
    if (host not in self.custom):
        self.custom[host] = {which: what}
    else:
        self.custom[host][which] = what
