Python and snappy

I want to run the Create Land/Sea Mask from python and snappy. Where can find the code to call the tool from snappy ?

In this thread you can find an example which you can adapt to you needs: