結果 : simple arithmetic coding in python