+
+def mkdir(path):
+ """Make a directory if it is not there already."""
+
+ try:
+ os.makedirs(path)
+ except:
+ pass
+
+def Md5(filename):
+
+ sum = ""
+
+ try:
+ f=open(filename, "rb")
+ sum = md5.md5(f.read()).hexdigest()
+ f.close()
+ except IOError:
+ print "Error: Unable to open file: %s" % filename
+ sys.exit()
+
+ return sum
+
+def Guid(guidString):
+ """Convert the guid string into a canonical form suitable for comparison."""
+ return string.lower(guidString)