Update to python template - Adding of new logging function.