def register_class(cls_name, cls, is_unique=False):
    """
    This function registers given class into tpRigToolkit module
    :param cls_name: str, name of the class we want to register
    :param cls: class, class we want to register
    :param is_unique: bool, Whether if the class should be updated if new class is registered with the same name
    """
    import tpDcc
    if is_unique:
        if cls_name in tpDcc.__dict__:
            setattr(tpDcc.__dict__, cls_name, getattr(tpDcc.__dict__, cls_name)
                )
    else:
        tpDcc.__dict__[cls_name] = cls
