How to override taxes and totals?

How can I override functions from these files?

taxes_and _totals.js
taxes_and _totals.py

If anyone already done override functions or class to change amount calculations, please share.