'If the function returned a dictionary that includes a
function named \'step_init\', prepend it to our list of steps.
This will only get run the first time a function with a nested
use of the step engine is run.'

def _add_step_init(self, local_vars, current_function):

    if (isinstance(local_vars, dict) and ('step_init' in local_vars) and callable(local_vars['step_init'])):
        self._current_step_ancestry.append(current_function)
        self.next_step_prepend('step_init')
