The ConsoleWriter class is accessible via the sqlobject.dbconnection module.
See the source for more information.