'Optional :flags: keyword argument with regexp flags to compile with'

def __init__(self, *args, **kwargs):

    if (u'flags' in kwargs):
        self.flags = kwargs[u'flags']
        del kwargs[u'flags']
    list.__init__(self, *args, **kwargs)
