import sys
import os

def log(*args):
	if not os.getenv('QUIET', False):
		print(*args, file=sys.stderr)

def log_err(*args):
	print(*args, file=sys.stderr)

import sys
import os

def log(*args, **kwargs):
	if not os.getenv('QUIET', False):
		print(*args, **kwargs, file=sys.stderr)

def log_err(*args, **kwargs):
	print(*args, **kwargs, file=sys.stderr)

Allow passing of kwargs to log and log_err