replacing print statements by logging api

I replaced all the ```print``` statement with ```logging```.

A better and more complex ```logging``` implementation would allow to log to different destination, depending on the importance of the message and depending on the module source of the message.

My implementation provide the same output than the ```print``` statements from before also specifying the source module and the log level in the message.