What is the use of the "setattr" method in Python?