def file_to_str(fname):
    """
    Read a file into a string
    PRE: fname is a small file (to avoid hogging memory and its discontents)
    """
    data = None
    with open(fname, 'rU') as fd:
        data = fd.read()
    return data
