<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def active(self):
 """ returns a dictionary of connections set as active. """

        return {key: value for key, value in self.conns.items()
                if value.active}