modified the deleteentry.py