'Inserts a filter module into the pipeline context.
:param ctx: the context to be inserted
:param index: (optional) index at which filter should be
inserted in the list of pipeline filters. Default
is 0, which means the start of the pipeline.'

def insert_filter(self, ctx, index=0):

    self.context.filter_contexts.insert(index, ctx)
