<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _query_gen(self):
 """Generates The String for queries"""

        return urlencode(self.__query__, safe=self.safe, querydelimiter=self.__querydelimiter__)