NEED HELP!!! controlling BGE actions with ANALOG Joystick input and Game Properties

Hi,
I want to do Digital puppetry and for this I need help with python

The main goal is to control actions exactly with the joystick.
for example: if I push the left stick half way up.the character is just smiling a little and if I push more the smile gets bigger.

I I never used Python before but I was able to connect the joystick to the game property’s to drive the actions and it works so far.

But when I move the stick the actions freezes some times and I don’t know why

Pleas check out the Blend file and sorry for my bad English
Joystick_Puppetry_Test.blend (538 KB)