def read_from_dill(name):
    """Read saved Python object from a dill file."""
    try:
        import dill
    except ImportError:
        raise ImportError('# Need to install dill package to use.')
    with open(name, 'rb') as dill_file:
        content = dill.load(dill_file)
    return content
