modified deleteentry.py