I would recommend installing .so in the PREFIX / lib folder - in other words, putting it in the default search path.
For Windows / Anaconda, this is PREFIX / Library / bin.
EDIT:
PREFIX - , Python. /usr /usr/local, ~/miniconda
:
os.path.join DLL. , , python PREFIX, .