Get properties from different scripts in game engine?
Properties belong to game objects rather than Python code. 

You write a property with myGameObject[propertyName] = value

example:

hitObject = sensor.hitObject
hitObject["detected"] = True


You read a property with value = myGameObject[propertyName].

example:

hitObject = sensor.hitObject
wasAlreadyDetected = hitObject["detected"]


I hope it helps