Made Ferret skip characters it doesn't understand

Had to change to python3 to make even the cv.xml file work.
I had to move smellingBerries() to the top, you can't use functions until they
  have been declared.
Switched to LXML which has additional features, most importantly, you can tell
it to continue on errors with recover=True.
Also, python style guideline http://www.python.org/dev/peps/pep-0008/ not that
  it's a big deal, just function naming style.