Print a trace message to stderr if environment variable is set.

def trace(msg):
    """Print a trace message to stderr if environment variable is set.
    """
    if os.environ.get('JARN_TRACE') == '1':
        print('TRACE:', msg, file=sys.stderr)