python: implement syntax.highlight and python api framework.