Revised Simplex Method Code In Python For Snake