def interfacename(kind, inst):
    """Return first half of the name of a counter properly formatted"""
    if inst:
        return "%s(%s)" % (kind, inst)
    else:
        return kind
Return first half of the name of a counter properly formatted
recipes/Python/303338_Helper_subclass/recipe-303338.py