def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def main(args):
    '''Populates an html template using JSON-formatted output from the
    Linux 'du' utility and prints the result'''
    html = '''