Changed import mtpy.core.Z to mtpy.core.z