Python Execute String As Function In R