code: def norm_path(path):
      
      # path = os.path.normcase(path)
      path = os.path.expanduser(path)
      path = os.path.expandvars(path)
      path = os.path.normpath(path)
      return path
docs: :return: Proper path for os with vars expanded out