code: def rename(self, name):
          
  
          r = self._h._http_resource(
              method='PUT',
              resource=('apps', self.name),
              data={'app[name]': name}
          )
          return r.ok
docs: Renames app to given name.