Added python-side  function