def scan_cix(content, filename, md5sum=None, mtime=None, lang='Python'):
 codeintel = scan_et(content, filename, md5sum, mtime, lang)
 tree = et.ElementTree(codeintel)
 stream = StringIO()
 tree.write(stream, 'utf-8')
 raw_cix = stream.getvalue()
 cix = raw_cix.replace('\n', '&#xA;')
 return cix

def scan_cix ( content , filename , md5sum = None , mtime = None , lang = 'Python' ) : codeintel = scan_et ( content , filename , md5sum , mtime , lang ) tree = et . ElementTree ( codeintel ) stream = StringIO ( ) tree . write ( stream , 'utf-8' ) raw_cix = stream . getvalue ( ) cix = raw_cix . replace ( '\n' , '&#xA;' ) return cix
scan the given python content and return code intelligence data conforming the the code intelligence xml format .