Print to log

Change print statements in library to python log statements.