Update hamtest.py

fixed Question7 bug, by looking for \n and -1'ing the questionID assumed location relative to the question break '~~\n'