I'd consider it javascriptic rather than Pythonic as js supports obj[attr]. But it leds to confusion. Python is not a ambiguous language like Javascript.
obj[attr]