def METHOD_NAME(script):
    """
    Groom a filter by moving all imports and includes to the top.  
    """
    # Pull and hold all imports
    lines = [x[0] for x in re.findall(_import_include, script)]
    # Add the rest of the script without the imports and includes
    lines.append(re.sub(_import_include, "", script))
    return "\n".join(lines)