Alright, just a few simple mistakes there.
When ever you are debugging code, you want to start by looking at the console (the black DOS window) and seeing if you have errors.
In this case I would guess that you would have an error that says something on the lines of “List object is not callable”
When you are calling something, you are basically putting brackets after it.
cont.sensors()
If you look at the link in this sentence, you will see that cont.sensors is actually a property of cont. The sensors attribute is simply a list of sensors, so what your code really translates to is:
[sens1, sens2]("sens1")
Which doesn’t really make sense to the interpreter.
To correct that mistake is quite easy, all you have to do is change it to:
cont.sensors["sens1"]
Also, you made the same mistake when you said:
if near.distance()
distance is a property of near.
In order to fix that, you just have to take away the brackets.
[EDIT:]Just one last thing I didn’t see, you are trying to access own.getHitObject() which is also an error because KX_GameObject doesn’t have that method. I think you were trying to access near.hitObject. You can find the docs for that at the second link that I gave you (the distance one.).
A great way to tell if something is a function or not is, functions normally have words like “set” or “get” in them, while properties are just the words them selves.
Hope that helps,
-Sunjay03