Text this: Polynomial bounds for chromatic number VIII. Excluding a path and a complete multipartite graph