import pickle


def pull_offset(fname):
    """Get progress from ``.status`` file."""
    try:
        with open(fname + '.status', 'rb') as f:
            return pickle.load(f)
    except IOError:
        return 0