Python uavtalk fixes

self.obj is either None or it is the matched key.  Should not be checking for == 0 (NULL) in python.