<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def topic(self, channel, topic=None):
 """change or request the topic of a channel"""

        if topic:
            channel += ' :' + topic
        self.send_line('TOPIC %s' % channel)