<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_mandatory_sections(self):
 """Get mandatory sections"""

        return [s for s in self.opt
                if s not in self.optional_sections and
                   s not in self.excluded_sections]