code: def glob(pathname, pattern=None):
      
      import glob as gl
      if pattern:
          pathname = op.join(pathname, pattern)
      return natsorted(gl.glob(pathname))
docs: Wraps around glob.glob(), but return a sorted list.