from datetime import datetime tracing=False def trace(*msg): if tracing: print(datetime.now(),*msg)