PYTHON: create logging