def list_to_txt(data_list, txt_path):
    """ Save python list to text file

    Parameters
    -------
    data_list: list
        data represented as python list
    txt_path: str
        text file path to save

    """
    with open(txt_path, 'w') as file:
        for item in data_list:
            file.write('{}\n'.format(item))
