def process_complete(data):
    """Check the processing status of a data object."""
    busy = ['UP', 'RE', 'WT', 'PR']
    data.update()
    if data.status == 'OK':
        return True
    elif data.status in busy:
        return False
    elif data.status == 'ER':
        raise ValueError('Problem processing data object: {}'.format(data.name))