Python Execute String As Function Sql