Revert "Revert "Update .getattributes""

This reverts commit 9502a74b485ce75a68b14561c1325c5895c5903c.