Python Logging Format Function In Excel