Switch completely from the previous custom logging code to Python's logging module. Some files are still using the old code.