Pythonにおけるgetattr()の利用方法を現役エンジニアが解説