'data has to be padded'

def decrypt(self, data):

    cleartext = ''
    if (not self.pyaes):
        cleartext = self.cipher.decrypt(data)
    else:
        for i in range(0, len(data), 16):
            cleartext += self.cipher.decrypt(data[i:(i + 16)])
    return cleartext
