Use Python's logging module instead of print statements

Change-Id: I3a0e8a5ea595caa75c9bd4dc308e2ad2b6bcbf1b