deletedmod function python - Search