def addproperty(*attrs):

    """Add properties ``attrs`` to class ``cls`` (assumed to be internally stored as '_attr')."""

    def decorator(cls):

        def _make_property(name):

            @property
            def func(self):
                return getattr(self,'_{}'.format(name))

            return func

        for attr in attrs:
            setattr(cls,attr,_make_property(attr))

        return cls

    return decorator