Convert all print statements to use the Python logger, so that we can offer some API to redirect logs later.
Convert all print statements to use the Python logger, so that we can offer some API to redirect logs later.