<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def publish_brightness(self, brightness):
 """publish changed brightness"""

        self.sequence_number += 1
        self.publisher.send_multipart(msgs.MessageBuilder.brightness(self.sequence_number, brightness))
        return self.sequence_number