Decorator to add a new postprocessor

def postprocessor(accepts, flag=None):
    """Decorator to add a new postprocessor"""
    def decorator(f):
        postprocessors.append((accepts, flag, f))
        return f
    return decorator