Your code is using an outdated version of the create_mesh script as prune_z_0 no longer exists in meshio, see: Need help converting GMSH to FEniCS - #61 by dokken
Your code is using an outdated version of the create_mesh script as prune_z_0 no longer exists in meshio, see: Need help converting GMSH to FEniCS - #61 by dokken