Pythonic logger