Expose logging in python bindings