def _escape_jid(jid):
 jid = str(jid)
 jid = re.sub("'*", '', jid)
 return jid

def _escape_jid ( jid ) : jid = str ( jid ) jid = re . sub ( "'*" , '' , jid ) return jid
do proper formatting of the jid .