Skeleton Class
A skeleton class is needed. It will manage "bone" objects that are connected and provide the reltive rotation that a specific bone needs to move acordingly to the sensors force, gravity and g-force settings.
The BGE documentation. Hard to find, harder to understand. http://www.blender.org/api/blender_python_api_2_75_release/contents.html