def _fn(stateName):
    """ Returns the callable name OR if stateName is a string just return it """
    nextState = None
    if hasattr(stateName, '__call__'):
        nextState = stateName.__name__
    else:
        nextState = stateName
    return nextState
