Added setattr() and dir() builtin functions and object.__dir__ and type.__dir__ methods