Python Function Output Parameter Sql