'Finalizes the torrent def and writes a torrent file i.e., bencoded dict
following BT spec) to the specified filename. Note this may take a
long time when the torrent def is not yet finalized.
@param filename An absolute Unicode path name.'

def save(self, filename):

    with open(filename, 'wb') as f:
        f.write(self.encode())
