Index: /issm/trunk-jpl/src/m/model/MatlabFuncs.py
===================================================================
--- /issm/trunk-jpl/src/m/model/MatlabFuncs.py	(revision 12675)
+++ /issm/trunk-jpl/src/m/model/MatlabFuncs.py	(revision 12675)
@@ -0,0 +1,28 @@
+def strcmp(str1,str2):
+
+	if str1 == str2:
+		return True
+	else:
+		return False
+
+def strncmp(str1,str2,n):
+
+	if str1[0:n] == str2[0:n]:
+		return True
+	else:
+		return False
+
+def strcmpi(str1,str2):
+
+	if str1.lower() == str2.lower():
+		return True
+	else:
+		return False
+
+def strncmpi(str1,str2,n):
+
+	if str1.lower()[0:n] == str2.lower()[0:n]:
+		return True
+	else:
+		return False
+
Index: /issm/trunk-jpl/src/m/model/WriteData.py
===================================================================
--- /issm/trunk-jpl/src/m/model/WriteData.py	(revision 12674)
+++ /issm/trunk-jpl/src/m/model/WriteData.py	(revision 12675)
@@ -1,2 +1,7 @@
+import numpy
+import math
+import struct
+from MatlabFuncs import *
+
 def WriteData(fid,*args):
 	"""
@@ -6,8 +11,4 @@
        WriteData(fid,*args)
 	"""
-
-	import numpy
-	import math
-	import struct
 
 	#process options
@@ -272,9 +273,2 @@
 # }}}
 
-def strcmpi(str1,str2):
-
-	if str1.lower() == str2.lower():
-		return True
-	else:
-		return False
-
