Sql Server Select Sum Return Null In Python