In the following link you can find documentation and examples of S2S retrievals. You have to select the centre that provide the data and then you will be able to find the Python request:
Remember that you can use the dynamic ECMWF Public Dataset web interface to discover the available data: