Write all data to created file. Also overwrite previous file.

def _save(file, data, mode='w+'):
    """
    Write all data to created file. Also overwrite previous file.
    """
    with open(file, mode) as fh:
        fh.write(data)