Hotpatch is a library that can be used to dynamically load a shared library (
.so file) on Linux from one process into another already running process, without affecting the execution of the target processs. The API is a C API, but also supported in C++. It is limited to the Intel
Hotpatch is BSD licensed and the C API should allow you to write wrappers in other languages such as Python, Perl etc.
The source code can be found on Github and has had interest from about 100 users.