The problem is that str.split is a method of the str class, but is being called for an object of the unicode class. Call the method directly with ipSplit = self.serverVars[0].split('.') to have it work for anything (including str and unicode) with a split method.