def read_file(fname):
    """ Read file at `fname` as text, return `contents`

    Parameters
    ----------
    fname : str
        Filename.

    Returns
    -------
    contents : str
        Contents read from `fname`.
    """
    with open(fname, 'rt') as fobj:
        contents = fobj.read()
    return contents