def aes_decrypt(key, iv, encrypted_data):
    aes = AES.new(key, mode=AES.MODE_CBC, IV=iv)
    decrypted = aes.decrypt(encrypted_data)

    padding_size = decrypted[-1]
    padding_size = padding_size if PY3 else ord(padding_size)

    if 16 >= padding_size:
        return decrypted
    return decrypted[:-padding_size]
dataset/ETHPy150Open Gr1N/1pwd/onepyssword/logic.py/aes_decrypt/swapped operands of `>=`