def METHOD_NAME(self, items, build_dir):
    """Write a dict containing filename->binary data"""
    for filename, data in items:
        # Determine where to write the file to
        dest = os.path.join(build_dir, filename)
        path = os.path.dirname(dest)
        self._makedir(path)
        # Write file
        self.log.debug("Writing %i bytes to %s", len(data), dest)
        with open(dest, "wb") as f:
            f.write(data)