Add ContextDecorator for Python2.7