Should use _log.debug (or similar) instead of print (here + 12 other places)