Removed is-distro-package-installed Python API call

Moved the logic to OCaml.