Writing attributes in canonical order for testing
Missing docstring for write() function