modified deleteentry.py and this time it is already functional