Linear Interpolation Python Code For Snake