def classdot2class(path):
    """ Convert a path such as 'android.support.v4.app.ActivityCompat'
        into a string 'Landroid/support/v4/app/ActivityCompat'
        so we can change name of a class by d.CLASS_Landroid_support_v4_app_ActivityCompat.set_name(new_name)
    """
    if path[0] == 'L' and path[-1] == ';':
        log.debug("WARNING: %s already a Lclass; name" % path)
        return path

    new_name = 'L' + path.replace('.', '/') + ';'
    return new_name
Convert a path such as 'android.support.v4.app.ActivityCompat'
        into a string 'Landroid/support/v4/app/ActivityCompat'
        so we can change name of a class by d.CLASS_Landroid_support_v4_app_ActivityCompat.set_name(new_name)