Writes the index file

def generateIndex(self, refresh=0, refresh_index=0):
        """Writes the index file"""
        open(self.index_file, "wt").write(self.renderIndex(refresh=refresh, refresh_index=refresh_index))