Replace Function In Python String