Check for responses in python parser instead of js

Moved the check for the edited response field to the python parser
where it should be instead of the js
Change #results to .results

It is not unique and should not be an ID
Remove checks for undefined and NaN

We are  now replacing "* ", "- " and " " with 0 in the XML parser, so
we shouldn't have any undefined or NaN values where numbers are
expected.
Readability and documentation

Rename some vars to be more descriptive and add some comments for
future reference
Optimizations

Consolidate some unnecessary variables and querries