Replace String Using Dict Python Format Specifier