use python logging module for messages instead of print()

The rest of this code is trying to be py2-compatible (see also the version test in ``cli.py``. Either this line should stay in or the other lines should stay out. Given that we might try to send our fixes upstream, we might want to try leaving this line in.