Better and common way for this is built-in Python system of names for loggers, I guess. If we have some issues with this approach - let's configure it right.