Use logging module for all printing
Remove superfluous spaces