cannot use the mac_alias package to generate an alias

Solution 1:

Technically this question was answered by mmmm. In any case, symlinks do bascially the same things as aliases. So if you want to create a symlink in python:

import os
os.symlink(source, destination)

And that should do it.