add embedding python interface