extended-euclidean Python 3 implementation of calculating modular inverses with the extended euclidean algorithm. Test it online