Print replaced by logging in models folder

Continuation of the pull request #718 for issue #41.