Decrease Decimal Function Matlab Code Writer Python