def serviceRun(email, title, params):
    printDebugMessage(u'serviceRun', u'Begin', 1)
    params[u'email'] = email
    if title:
        params[u'title'] = title
    requestUrl = (baseUrl + u'/run/')
    printDebugMessage(u'serviceRun', (u'requestUrl: ' + requestUrl), 2)
    requestData = urlencode(params)
    printDebugMessage(u'serviceRun', (u'requestData: ' + requestData), 2)
    try:
        user_agent = getUserAgent()
        http_headers = {u'User-Agent': user_agent}
        req = Request(requestUrl, None, http_headers)
        reqH = urlopen(req, requestData.encode(encoding=u'utf_8', errors=u'strict'))
        jobId = unicode(reqH.read(), u'utf-8')
        reqH.close()
    except HTTPError as ex:
        print(xmltramp.parse(unicode(ex.read(), u'utf-8'))[0][0])
        quit()
    printDebugMessage(u'serviceRun', (u'jobId: ' + jobId), 2)
    printDebugMessage(u'serviceRun', u'End', 1)
    return jobId
def serviceRun(email, title, params):
    printDebugMessage(u'serviceRun', u'Begin', 1)
    params[u'email'] = email
    if title:
        params[u'title'] = title
    requestUrl = (baseUrl + u'/run/')
    printDebugMessage(u'serviceRun', (u'requestUrl: ' + requestUrl), 2)
    requestData = urlencode(params)
    printDebugMessage(u'serviceRun', (u'requestData: ' + requestData), 2)
    try:
        user_agent = getUserAgent()
        http_headers = {u'User-Agent': user_agent}
        req = Request(requestUrl, None, http_headers)
        reqH = urlopen(req, requestData.encode(encoding=u'utf_8', errors=u'strict'))
        jobId = unicode(reqH.read(), u'utf-8')
        reqH.close()
    except HTTPError as ex:
        print(xmltramp.parse(unicode(ex.read(), u'utf-8'))[0][0])
        quit()
    printDebugMessage(u'serviceRun', (u'jobId: ' + jobId), 2)
    printDebugMessage(u'serviceRun', u'End', 1)
    return jobId