'Create a session and return the ID'

def start_session(self, expire=5, id=None):

    if (id is None):
        url = ('%s/sessions/v1/?op=create&expire=%d' % (self._base, expire))
        self._session = self._do_post(url)['id']
    else:
        self._session = id
    return self._session
