Adapted the systematic erros script to be used with the GUI.

The new script process_masks.py adapts the masks like the GUI to make it
usable from the command line.