def METHOD_NAME(py_filename):
    with open(py_filename, 'r', encoding='utf8') as f:
        lines = f.readlines()
    function_list = []
    class_list = []
    for line in lines:
        line = line.split('#')[0].rstrip()
        if line.startswith('class '):
            # class ASDF(object):
            class_name = line.split('(')[0].split(' ')[1]
            is_object = False
            if '(object):' in line:
                is_object = True
            class_list.append((class_name, is_object))
        elif line.startswith('def '):
            function_name = line.split('(')[0].split(' ')[1]
            if function_name.startswith('_'):
                continue
            function_list.append(function_name)
    #for class_name in class_list:
        #print(class_name)
    return class_list, function_list