Call Function Using String Python Replace