Change to stdlib ensure_packages