import time

def now():
    return time.strftime("%Y-%m-%d %H:%M:%S");

def log(msg):
    new_msg = "[%s] %s" % (now(), msg)
    print new_msg
    return new_msg
