def cleanTag(self):
    allowed = (list(((string.ascii_lowercase + string.ascii_uppercase) + string.digits)) + ['_', '@', ' '])
    newtext = ''
    for letter in self.text:
        if (letter in allowed):
            newtext += letter
    self.text = newtext
def cleanTag(self):
    allowed = (list(((string.ascii_lowercase + string.ascii_uppercase) + string.digits)) + ['_', '@', ' '])
    newtext = 
    for letter in self.text:
        if (letter in allowed):
            newtext += letter
    self.text = newtext