def get_py_launcher(ctx):
    """Returns the python launcher for a given rule."""
    attr = ctx.rule.attr
    if hasattr(attr, "_launcher") and attr._launcher != None:
        return str(attr._launcher.label)
    return None