Bug fix for Tornado v3

Replacing undocumented dictionary access with attribute access.

See:
https://groups.google.com/forum/?fromgroups=#!topic/python-tornado/5LDMj
TzXMu8