add & update more template
use lucene to query degree
update python code