def make_unicode(data): if type(data) != unicode: data = data.decode('utf-8') return data else: return data