Use masks in snappy library

how can i use masks in snappy library (python 3.6)

It depends, what you want to do. Do you want to create new masks, or do you want to use existing masks?