Fixed type check in search_contains method of PyFilter

If we use mind's own entity, the type is NPCMind, and not PyEntity