Substituting print's by appropriate logging

Using python loggin module.