Simple logging class in Python