def _open(file_name, mode='r'):
    """
    Open a file for either python2 or python3
    """
    try:
        file_ = open(file_name, mode, encoding='utf-8')
    except TypeError:
        file_ = open(file_name, mode)
    return file_
