set up more python bindings, made logging synchronous