code: def normpath (path):
      
      expanded = os.path.expanduser(os.path.expandvars(path))
      return os.path.normcase(os.path.normpath(expanded))
docs: Norm given system path with all available norm or expand functions
      in os.path.