fix in python interface