<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setCredentials(self, username, password):
 """ Sets authentication credentials for accessing the remote gateway. """

        self.addHeader('Credentials', dict(userid=username.decode('utf-8'),
            password=password.decode('utf-8')), True)