Python Use Variable As Function In R