Python Replace Function In Module