Fix PyList usage error.