Python Logging Auto Rolling Shutter