Using Replace Function In Python Dictionary For Loop