Python Replace String With Value From Dictionary