migrate libexec code to new python api