'Converts a sequence to a string of the form ``(item1, item2, ...)``.  This
is suitable for ``IN`` value lists.'

def cql_encode_sequence(self, val):

    return ('(%s)' % ',    '.join((self.mapping.get(type(v), self.cql_encode_object)(v) for v in val)))
