Bugfix in Python compatibility.
Improved directory-result detection.

- Might be isolated to empty directory-list results.
We no longer provide the API at the package level.

We couldn't use it for the version from the setup.