The problem is that I have some [Python scripts] in a subdirectory that should be able to import the shared libraries [in the root directory]. Is there a way to do this without making these libraries part of the default path for any random script run on the machine from a terminal?
You can add sys.path.append("..") to the top of your script to add to the import path for just that one script. See also "Dynamically change the Python system path" recipe.