add __delitem__ method to file class