Please add the inverse functions of both algorithms to the library.
Please be sure to add support for Python 3.