Allow parenthesis in search if it's still one statement.

This is prompted by http://bugs.python.org/issue917120 , where
parenthesis work around incorrect quoting of strings.