<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def change_thickness(self, element, thickness):
 r"""Change line thickness. Changes the thickness of the line under/over the header/footer to the specified thickness. Args ---- element: str the name of the element to change thickness for: header, footer thickness: float the thickness to set the line to """


        if element == "header":
            self.data.append(Command("renewcommand",
                             arguments=[NoEscape(r"\headrulewidth"),
                                        str(thickness) + 'pt']))
        elif element == "footer":
            self.data.append(Command("renewcommand", arguments=[
                NoEscape(r"\footrulewidth"), str(thickness) + 'pt']))