def debug_print(*message):
 if DEBUG:
  ss = STDOUT
  if PY3:
   for m in message:
    ss.buffer.write(str(m).encode('utf-8'))
   print('', file=ss)
  else:
   print(file=ss, *message)

def debug_print ( * message ) : if DEBUG : ss = STDOUT if PY3 : for m in message : ss . buffer . write ( str ( m ) . encode ( 'utf-8' ) ) print ( '' , file = ss ) else : print ( file = ss , * message )
special function for debug output .