def step(f):
    """
    The step decorator. Makes a method a step in the workflow.
    """
    f.is_step = True
    f.decorators = []
    try:
        f.name = f.__name__
    except:
        f.name = f.__func__.func_name
    return f
