1 2 3 4 5 6 7 8 9
"""Common functions.""" import sys def log(msg, *args): if args: msg = msg % args print >>sys.stderr, msg