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