def get_include_functions(input_py,avoid_v=["main"],plus_v=["lib_*"],exclude_v=["*.<module>"],profile_memory=0):
    """
    Get str with include argument for pycallgraph.
    
    Parameters
    ----------
     input_py : str
         python script to scan functions in.
     avoid_v : list of str
         list of funcionts to be excluded.
     profile_memory : int
         [0 by default] if 1 will include memory profiling information (see notes below).
     
    Returns
    -------
     i_args : str 
         arguments on functions to be included in pycallgraph profiling.
     
    Notes
    -----
     -Memory profiling (not used by default):
       Reported as experimental by pycallgrpah docs. 
       Install psutil and python-psutil, otherwise it will be slow.
    """
    func_name_v=[]
    test_def="def "
    with open(input_py, 'r') as f:
        lines = f.readlines()
        for line in lines:
            if line[:len(test_def)]==test_def:
                func_name=line[len(test_def):].split('(')[0]
                func_name_v.append(func_name)
    
    i_args=""    
    if profile_memory:
        i_args+="-m "                       # Memory profiling
    for i in func_name_v+plus_v:
        if i not in avoid_v:
            i_args+="-i \""+i+"\" "         # Include if not in avoid_v
    for i in exclude_v:
        i_args+="-e \""+i+"\" "             # Exclude
    
    return(i_args)