After the JSON writer was done in https://github.com/spdx/tools-python/issues/359, the tag/value writer should follow next. See the linked ticket and the corresponding PR/changes to get an overview. The previous state can also serve as an example, see https://github.com/spdx/tools-python/blob/b8fde35e141daf082b8b0fe32f875da06e6316e6/spdx/writers/tagvalue.py