Use getattr instead of 'get'