def ensure_include(file_, file_type, include_file):
    fd = open(file_, 'r+')
    try:
        new_content = _ensure_include(fd, file_type, include_file)
        fd.close()
        fd = open(file_, 'w+')
        fd.write(new_content)
    except Exception, e:
        raise Exception
    finally:
        fd.close()
This function is magical. It will make sure that the 'include_file' has
dataset/ETHPy150Open mozilla/inventory/migrate_dns/utils.py/ensure_include