<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enable(step: 'projects.ProjectStep'):
 """ Create a print equivalent function that also writes the output to the project page. The write_through is enabled so that the TextIOWrapper immediately writes all of its input data directly to the underlying BytesIO buffer. This is needed so that we can safely access the buffer data in a multi-threaded environment to display updates while the buffer is being written to. :param step: """


    # Prevent anything unusual from causing buffer issues
    restore_default_configuration()

    stdout_interceptor = RedirectBuffer(sys.stdout)
    sys.stdout = stdout_interceptor
    step.report.stdout_interceptor = stdout_interceptor

    stderr_interceptor = RedirectBuffer(sys.stderr)
    sys.stderr = stderr_interceptor
    step.report.stderr_interceptor = stderr_interceptor

    stdout_interceptor.active = True
    stderr_interceptor.active = True