def class2func(path):
    """ Convert a path such as 'Landroid/support/v4/app/ActivityCompat;'
        into a method string 'CLASS_Landroid_support_v4_app_ActivityCompat'
        so we can call d.CLASS_Landroid_support_v4_app_ActivityCompat.get_source()
    """
    func = 'CLASS_' + path.replace('/', '_').replace('$', '_').replace(';', '')
    return func
