'Generate class boilerplate'

def compileclassheader(self):

    classname = ('%s_Events' % self.modname)
    if self.basemodule:
        modshortname = string.split(self.basemodule.__name__, '.')[(-1)]
        baseclassname = ('%s_Events' % modshortname)
        self.fp.write(('class    %s(%s):\n\n' % (classname, baseclassname)))
    else:
        self.fp.write(('class    %s:\n\n' % classname))
