Changed the way of logging 

these commits will make the way of logging in opslib more common and pythonic