'fetch a file from remote to local'

def fetch_file(self, in_path, out_path):

    super(Connection, self).fetch_file(in_path, out_path)
    in_path = self._normalize_path(in_path, '/')
    self._display.vvv(('FETCH    %s    TO    %s' % (in_path, out_path)), host=self.host)
    content = self.client.cmd(self.host, 'cp.get_file_str', [in_path])[self.host]
    open(out_path, 'wb').write(content)
