update thrift2 script to detect python version

N/A

Change-Id: Ibaee843d15ea2418ac695a63db8daf99809cdcd8
Signed-off-by: liuhuahang <liuhuahang@zerus.co>
Merge "update thrift2 script to detect python version"