'Some part of Mininet don\'t like Unicode'

def convertJsonUnicode(self, text):

    if isinstance(text, dict):
        return {self.convertJsonUnicode(key): self.convertJsonUnicode(value) for (key, value) in text.iteritems()}
    elif isinstance(text, list):
        return [self.convertJsonUnicode(element) for element in text]
    elif isinstance(text, unicode):
        return text.encode('utf-8')
    else:
        return text
