[909007] Replace print statements with python logging API

All prints have been replaced by logging messages (error, exception and info level). Default level to log has been initially set to DEBUG in main() method.

Please merge it if you want to have all prints removed.