use more direct C-API call for slice assignments on lists