'Returns item secret (bytestring).'

def get_secret(self):

    self.ensure_not_locked()
    if (not self.session):
        self.session = open_session(self.bus)
    secret = self.item_iface.GetSecret(self.session.object_path, signature='o')
    if (not self.session.encrypted):
        return bytes(bytearray(secret[2]))
    aes_iv = bytes(bytearray(secret[1]))
    aes = Cipher.AES.new(self.session.aes_key, Cipher.AES.MODE_CBC, aes_iv)
    encrypted_secret = bytes(bytearray(secret[2]))
    padded_secret = aes.decrypt(encrypted_secret)
    padded_secret = bytearray(padded_secret)
    return bytes(padded_secret[:(- padded_secret[(-1)])])
