Replace String Using Dict Python Documentation Library