Don't bother with pts - copy the internals of the list comprehension straight into the join. i.e.:

```'|'.join(coord.points[i] for i in key_slice)```