Fix api_name mangling properly
API gets passed class, not instance