I have found that when using any other mode, other than “r”, attributes are not accessible and an err