code: def send_many(self, recipients, from_address=None, fee=None):
          
          
          params = self.build_basic_request(read_only=False)
  
          if len(recipients) == 1:
              to_address, amount = recipients.popitem()
              params['to'] = to_address
              params['amount'] = amount
              method = 'payment'
          else:
              params['recipients'] = json.dumps(recipients)
              method = 'sendmany'
          
          if from_address is not None:
              params['from'] = from_address
          if fee is not None:
              params['fee'] = fee
              
          response = util.call_api("merchant/{0}/{1}".format(self.identifier, method), params,
                                   base_url=self.service_url)
          json_response = json.loads(response)
          
          self.parse_error(json_response)
          payment_response = PaymentResponse(json_response['message'],
                                             json_response['tx_hash'],
                                             json_response.get('notice'))
          return payment_response
docs: Send bitcoin from your wallet to multiple addresses.
  
          :param dictionary recipients: dictionary with the structure of 'address':amount
          :param str from_address: specific address to send from (optional)
          :param int fee: transaction fee in satoshi. Must be greater than the default
                          fee (optional).
          :return: an instance of :class:`PaymentResponse` class