code: def debug_print(*message):
      
      warnings.warn("debug_print is deprecated; use the logging module instead.")
      if get_debug_level():
          ss = STDOUT
          if PY3:
              # This is needed after restarting and using debug_print
              for m in message:
                  ss.buffer.write(str(m).encode('utf-8'))
              print('', file=ss)
          else:
              print(*message, file=ss)
docs: Output debug messages to stdout