def printer(string, quiet=False, debug=False, **kwargs):
 if (debug and (not DEBUG)):
  return
 if debug:
  out = ('\x1b[1;30mDEBUG: %s\x1b[0m' % string)
 else:
  out = string
 if (not quiet):
  print_(out, **kwargs)

def printer ( string , quiet = False , debug = False , ** kwargs ) : if ( debug and ( not DEBUG ) ) : return if debug : out = ( '\x1b[1;30mDEBUG: %s\x1b[0m' % string ) else : out = string if ( not quiet ) : print_ ( out , ** kwargs )
helper function to print a string only when not quiet .