Xbox 360 Controller help

Hi, I understand now that there is a sensor for controllers, and that you can use threshold on analogue sticks, but it is in-precise, and it takes ages to do. So, is there a way of doing this with python? Does anyone have a movement script that works?