I think you have an off-by-one error here. `p + c` (should have space around +) can be the same as the container length, thus off the end of the container.

I suggest something like this:

``` python
for i in range(p + c - 1, p - 1, -1):
    if self.jukebox.ctr[i].is_loaded():
        print "Removing playlist #%d" % (i)
        self.jukebox.ctr.remove_playlist(i)
```