you should always create a dictionary headers = {...}

Then you can do self.headers.update(headers)