def fixPath(path):
    """
  This class kind of sucks is makes sure that paths have the correct number of /'s in them.
  I could not get any of the os.path fuctions to do this reliably, not sure why.
  """
    if path[0] != '/':
        path = '/' + path
    while path.find('//') != -1:
        path = path.replace('//', '/')
    return path
