Adding vtdb_logger object to python code.

It can be used to report stats in any other way than logging
(logging is the default behavior of the class).