'return a tuple with the argument names for the code object
if \'var\' is set True also return the names of the variable and
keyword arguments when present'

def getargs(self, var=False):

    raw = self.raw
    argcount = raw.co_argcount
    if var:
        argcount += (raw.co_flags & CO_VARARGS)
        argcount += (raw.co_flags & CO_VARKEYWORDS)
    return raw.co_varnames[:argcount]
