Why not include this when you declare the dictionary?
```
headers = {
    'Content-Type': 'application/xml',
    'X-Requested-With': 'XMLHttpRequest',
    'Authorization': self.oauth_sign(url, data)
}
```