python: ensure symlinks are created for things installed in post_install

Fixes #28196.