where '%s' is replaced with token.contents. call the method parser.compile_filter with an argument, in_index incremented by one, and used to index parser.compile_filter,
sequence = parser . compile_filter ( bits [ in_index + 1 ] )