Set properties

def set(self, **kwargs):
        """
        Set properties
        """
        for name, value in kwargs.items():
            if hasattr(self, name):
                setattr(self, name, value)
            else:
                raise AttributeError(
                    "{!r} object has no attribute {}".format(
                        self.__class__.__name__,
                        name))