'Creates methods to handle task phases.'

def __getattr__(self, item):

    for phase in self.HANDLED_PHASES:
        if (item == plugin.phase_methods[phase]):
            break
    else:
        raise AttributeError(item)
    def phase_handler(task, config):
        self.execute(task, (u'on_' + phase), config)
    phase_handler.priority = 100
    return phase_handler
