Marching Cubes Algorithm Python If Statements With Strings