<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def action(self, method, action, **params) : """a generic fct for interacting everything that doesn't have an assigned fct"""

        fct = getattr(self.connection.session, method.lower())
        r = fct(self.URL + "/" + action, params = params)
        return r.json()