Update decorators.py

According to http://www.rfc-editor.org/rfc/rfc4329.txt