Working with Python application logs