<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def urlencode(self):
 """ Convert dictionary into a query string; keys are assumed to always be str """

        output = ('%s=%s' % (k, quote(v)) for k, v in self.items())
        return '&'.join(output)