def get_scripts(scripts_dict, pipeline, workflow):
    """
    input:
        scripts_dict: scripts dictionary described in get_scripts_dict function
        pipeline: name of a supported target pipeline or "all". 
        workflow: name of a supported target workflow or "all"

    If the pipeline parameter is "all", returns the full scripts_dict
    If it isn't "all" but workflow is "all", returns dictionary with keys=workflows in pipeline, values=scripts in workflow
        It also contains the "All Pipelines" list from the original scripts_dict
    If both pipeline and workflow aren't "all" returns dictionary with keys=target workflow, All <pipeline> Workflows, All Pipelines
        and values=list of scripts under each key
    """
    if pipeline == "all":
        return scripts_dict

    if workflow == "all":
        return {**scripts_dict[pipeline], **{"All Pipelines":scripts_dict["All Pipelines"]}}

    return {workflow:scripts_dict[pipeline][workflow], 
            "All {} Workflows".format(pipeline):scripts_dict[pipeline]["All Workflows"],
            "All Pipelines":scripts_dict["All Pipelines"]}