Fixing search view to use urllib to encode query paramaters