Missing prints replaced by logging

Some prints were missed in the previous pull requests.

As we discussed, some print statements have not been modified since they are under comments or use specific print functionality (comma at the end of the print statement).