def generate_plan(routine_environment, exercise_data, **kwargs):
    """ dumps output helpful for debugging and returns all routines
    """
    output = print if 'output' not in kwargs else kwargs['output'].write
    output(routine_environment)
    for exercise_name, exercise in exercise_data.items():
        output('{0}:\n   {1}'.format(exercise_name, exercise))
    return [[]]
