def __init__(self, q, page=<NUM_LIT:0>, wait=<NUM_LIT:10>, asynchronous=False, cached=True):
if cached: <EOL><INDENT>cache = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>cache = None<EOL><DEDENT>url  = "<STR_LIT>"<EOL>self.id_string = url + "<STR_LIT>"<EOL>if isinstance(q, int):<EOL><INDENT>url  = self.id_string + str(q)  <EOL><DEDENT>elif q in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>url += "<STR_LIT>"+q<EOL>url += "<STR_LIT>"+str(page*<NUM_LIT:30>)+"<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>url += "<STR_LIT>"+quote(q)<EOL>url += "<STR_LIT>"+str(page*<NUM_LIT:30>)+"<STR_LIT>"<EOL><DEDENT>if q in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if cached and Cache(cache).age(url) > <NUM_LIT:0>:<EOL><INDENT>Cache(cache).remove(url)<EOL><DEDENT><DEDENT>URLAccumulator.__init__(self, url, wait, asynchronous, cache, type="<STR_LIT>", throttle=<NUM_LIT:3>)<EOL>
Parses color themes from Adobe Kuler.

        Valid queries are "popular", "rating", 
        a theme id as an integer, or a search string.