Maximum distance python code

I need some help!
I have two models: skin and PTV

I need a Python code to calculate the maximum distance between these two models in my desired direction

or

thanks a lot

Can no one help me? :cry: