replace print statements with logger

This change replaces a few print statements with a logger because print statements break the PyLint on Python 2.7.