<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send(self, address, data_dict):
 """ address can either be a string or a list of strings data_dict gets sent along as is and could contain anything """

        if type(address) == list:
            recipients = [self.recipients.get(rec) for rec in address]
        else:
            recipients = [self.recipients.get(address)]

        if recipients:
            for recipient in recipients:
                if recipient:
                    recipient.send(json.dumps(data_dict).encode())