[shmemfix7] use del [:] to clear lists; clear() isn't available for older python
[shmem-preview] Merge branch 'shmemfix7' into shmem-preview