Sql Server Checking For Null Values In Python