Python Format Execute Function In Sql