Yes, I can do it in Python. Bash no because it is too slow.
Your idea for script is good.
Script should do the work.
I have csv files: transactions, balances.
Only have to connect transactions and balances with public addresses/private keys.
Will think about it.
Thanks!