This should be `del self.identities[nick]`. `del` is a keyword not a function.