use logging module instead of printing the message directory.
now the current logging level is debug, change to other if you want.
remove the comment line.