def exec_file(file, add_params=None):
    """
    Executes a file with the .py extension
    
    Parameters
    ----------
    
    **file**: string
        path to the python file
        
   **add_params**:
        additional parameters that are used in the file that is beeing executed
    
    Returns
    -------
    
        Whatever output the executable file outputs    
    """
    if add_params is not None:
        exec(open(file).read(), add_params)
    else:
        exec(open(file).read())
