Python codes for SAR water mask

Hello
My first question is that what work flow for a SAR (radarsat2, SLC) water masking should be followed (processing steps for water mask)?

My second question, does sb recommend a python script for the water masking?

Thanks