Index: /issm/trunk-jpl/test/NightlyRun/runme.py
===================================================================
--- /issm/trunk-jpl/test/NightlyRun/runme.py	(revision 12852)
+++ /issm/trunk-jpl/test/NightlyRun/runme.py	(revision 12853)
@@ -7,7 +7,4 @@
 import netCDF4
 import sys
-
-from parallelrange import parallelrange
-from IdToName import IdToName
 
 def runme(id=None,exclude=None,benchmark='nightly',procedure='check',output='none',rank=1,numprocs=1):
@@ -42,4 +39,7 @@
 	       md=runme(id=102,procedure='update')
 	"""
+
+	from parallelrange import parallelrange
+	from IdToName import IdToName
 
 	#Get ISSM_DIR variable
Index: /issm/trunk-jpl/test/Par/SquareShelfConstrained.par
===================================================================
--- /issm/trunk-jpl/test/Par/SquareShelfConstrained.par	(revision 12852)
+++ /issm/trunk-jpl/test/Par/SquareShelfConstrained.par	(revision 12853)
@@ -50,5 +50,5 @@
 md=SetIceShelfBC(md);
 
-%Change name so that no test have the same name
+%Change name so that no tests have the same name
 A=dbstack;
 if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Index: /issm/trunk-jpl/test/Par/SquareShelfConstrained.py
===================================================================
--- /issm/trunk-jpl/test/Par/SquareShelfConstrained.py	(revision 12852)
+++ /issm/trunk-jpl/test/Par/SquareShelfConstrained.py	(revision 12853)
@@ -4,4 +4,6 @@
 import InterpFromMeshToMesh2d as im
 from   paterson import  *
+from SetIceShelfBC import *
+import inspect
 
 #Start defining model parameters here
@@ -19,6 +21,6 @@
 mat=matio.loadmat('../Data/SquareShelfConstrained.data')
 #Reshape as Rank-1 arrays
-x=reshape(mat['x'],(size(mat['x']),))
-y=reshape(mat['y'],(size(mat['y']),))
+x=reshape(mat['x'],(-1))
+y=reshape(mat['y'],(-1))
 vx=mat['vx']
 vy=mat['vy']
@@ -58,7 +60,6 @@
 #Deal with boundary conditions:
 md = SetIceShelfBC(md)
-#Change name so that no test have the same name
-A = dbstack
-if length(A) > 2.:
-    md.miscellaneous.name = A[2].file[0:0-2.]
+#Change name so that no tests have the same name
+if len(inspect.stack()) > 2:
+    md.miscellaneous.name = inspect.stack()[2][1].split('.')[0]
 
