Same as jQCalc, only in python