modified settings for python mode
added a new function for deleting characters