Use python logger instead of print() and change log level for some messages