Modified AcceptTokenHandler to use dict.get

```python
dict.get('key') 
```
is equivalent to 
```python
dict['key'] if 'key' in dict else None
```