ensure_packages takes a list