Create data source from a dict
        data_source example =
        {
            'pop3': {
                'leaveOnServer': "(0|1)", 'id': 'data-source-id',
                'name': 'data-source-name',
                'isEnabled': '(0|1)', 'importOnly': '(0|1)',
                'host': 'data-source-server', 'port': 'data-source-port',
                'connectionType': '(cleartext|ssl|tls|tls_is_available)',
                'username': 'data-source-username',
                'password': 'data-source-password',
                'emailAddress': 'data-source-address',
                'useAddressForForwardReply': '(0|1)',
                'defaultSignature': 'default-signature-id',
                'forwardReplySignature': 'forward-reply-signature-id',
                'fromDisplay': 'data-source-from-display',
                'replyToAddress': 'data-source-replyto-address',
                'replyToDisplay': 'data-source-replyto-display',
                'importClass': 'data-import-class',
                'failingSince': 'data-source-failing-since'
            }
        }

def create_data_source(self, data_source, dest_folder):
        """ Create data source from a dict
        data_source example =
        {
            'pop3': {
                'leaveOnServer': "(0|1)", 'id': 'data-source-id',
                'name': 'data-source-name',
                'isEnabled': '(0|1)', 'importOnly': '(0|1)',
                'host': 'data-source-server', 'port': 'data-source-port',
                'connectionType': '(cleartext|ssl|tls|tls_is_available)',
                'username': 'data-source-username',
                'password': 'data-source-password',
                'emailAddress': 'data-source-address',
                'useAddressForForwardReply': '(0|1)',
                'defaultSignature': 'default-signature-id',
                'forwardReplySignature': 'forward-reply-signature-id',
                'fromDisplay': 'data-source-from-display',
                'replyToAddress': 'data-source-replyto-address',
                'replyToDisplay': 'data-source-replyto-display',
                'importClass': 'data-import-class',
                'failingSince': 'data-source-failing-since'
            }
        }
        """
        folder = self.create_folder(dest_folder)
        for type_source, source_config in data_source.items():
            data_source[type_source]['l'] = folder['id']
        return self.request('CreateDataSource', data_source)