Pull in Upstream Changes

Update lib/carbon/writer.py (master)