Python Replace Variable Value Definition