def replace_non_data_file(self, dataset_identifier, params, file_data):
        api_prefix = '/api/views/'
        resource = "{0}{1}.{2}".format(api_prefix, dataset_identifier, "txt")

        if not params.get('method', None):
            params['method'] = 'replaceBlob'

        params['id'] = dataset_identifier

        return self._perform_request("post", resource, params=params, files=file_data)
Same as create_non_data_file, but replaces a file that already exists in a 
dataset/ETHPy150Open xmunoz/sodapy/sodapy/__init__.py/Socrata.replace_non_data_file