Just a few minor cleanups for the localalizing client to be used in the search tests as well.
Various cleanups (PEP8 and PEP257 related mostly).
Merge pull request #2004 from jezdez/test-cleanups

Cleanups and fixes to the tests.