Two Stage Simplex Algorithm Python Code For Snake