Logged In: YES
user_id=142072

By abandoning support for python2.2, we could use the
logging module. That should also solve the problem of
syncronizing the log between threads without reinventing the
wheel.