If you add the root dir for your project as export PYTHONPATH='/path/to/deepxi'
And then to call polar you would do
from lib.dev.acoustic.analysis_synthesis import polar
and to call add_noise_batch you would do
from lib.dev import add_noise_batch
OR
export PYTHONPATH='/path/to/deepxi/lib'
And do:
from dev.acoustic.analysis_synthesis import polar
from dev import add_noise_batch
Like that you can add more to your PYTHONPATH, but best practice is to add root folder (first method) and then use absolute paths to whatever you are calling.
Also, rename lib since that is also a common module within Python. Always name stuff so that it doesn't coincide with an already existing module. So analysis_synth_lib or something that isn't lib
NOTE
You can add multiple paths to your PYTHONPATH, not advised, but you can do! e.g. export PYTHONPATH='/path/to/deepxi:/path/to/deepxi/lib'
Now whenever you run the function, it will exhaust all paths in your PYTHONPATH to find what it's looking for!