fixed class level attributes, fixed __getattr__, added test__getattr__.html