code: def remotefile(url, format=None):
      
  
      if format is None:
          res = urlparse(url)
          filename, ext = os.path.splitext(res.path)
  
          hc = get_handler_class(ext)
      else:
          hc = _handler_map.get(format)
          if hc is None:
              raise ValueError('Format {} not supported.'.format(format))
  
      fd = urlopen(url)
      handler = hc(fd)
      return handler
docs: The usage of *remotefile* is equivalent to
      :func:`chemlab.io.datafile` except you can download a file from a
      remote url.
  
      **Example**
  
          mol = remotefile("https://github.com/chemlab/chemlab-testdata/blob/master/3ZJE.pdb").read("molecule")