while unusual in the "python world", there are more or less well supported ways: https://www.askpython.com/python/examples/compiling-applicat...
i'm sure go will support dynamic linking aswell sooner or later