compile XPath only once avoid redundant call to urlparse get_locale(webapp.py): avoid useless call to request.accept_languages.best_match
Cf. http://legacy.python.org/dev/peps/pep-0008/#blank-lines