Python Function Output Parameter In Sql