Print replaced by logging in datasets and devtools folders

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