def add_transition(name, from_state, to_state, callback=None, **kw):
    """ Add a new transition.  ``callback`` is the callback that
        will be called when this transition is made (before it enters
        the next state)."""
