Arithmetic Coding In Python On Visual Studio