def __init__(self, document=None):
        """Initialize hooks."""
        self.cleanup = ""

        if document is not None and 'hooks' in document:

            if 'cleanup' in document['hooks'] and 'script' in document['hooks']['cleanup']:
                self.cleanup = document['hooks']['cleanup']['script']
def __init__ ( self , document = None ) : self . cleanup = "" if document is not None and 'hooks' in document : if 'cleanup' in document [ 'hooks' ] and 'script' in document [ 'hooks' ] [ 'cleanup' ] : self . cleanup = document [ 'hooks' ] [ 'cleanup' ] [ 'script' ]
Initialize hooks.