A Python Implementation of Ratio Deco