Python Replace Characters In String With Dictionary