Perpendicular baseline calculation for many files

I am looking for a way to calculate perpendicular baseline between Sentinel-1A data with each othor.
So, the InSAR stack overview tool could be used from python or other way to make it happen that many files can be calculateed with each other and output ?