'Send a heartbeat request. This is needed in order to keep a session alive'

def heartbeat(self):

    if (self._session is not None):
        url = ('%s/sessions/v1/%s' % (self._base, self._session))
        self._do_put(url, '')
