[python] Get an object attribute