Converted to Python logging interface