You should write the alias commands to stdout. (eg. just use print).
Then the shell that is calling the Python script can run the alias commands itself.
As commented by @that other guy
eval "$(python yourscript.py)"
in your .bashrc
should do it