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.
Remove whitespace between for/if and (
IMAP: Test search with extra parans around the keys
IMAP: Handle search with extra parans and one key