Marching Cubes Algorithm Python If Statements Multiple Conditions