'Removes comments (#...) from python code.'

@classmethod
def split_comment(cls, code):

    if ('#' not in code):
        return code
    subf = (lambda m: ('' if (m.group(0)[0] == '#') else m.group(0)))
    return re.sub(cls.re_pytokens, subf, code)
