update python interface