Yes:
from pylons import response
Unlike, for example, PHP or JavaScript, there's not much that's
globally global (so to speak) in Python, except built-ins like `len`.
In JavaScript, if you define a var at the window level, that var is
available everywhere, which is great source of confusion and errors.
In Python, there's no analogous super-global namespace--you always
have to import the symbols you need, and this a good thing IMO.
With regard to `pylons.response` and friends, these are global in the
sense that there's a single object that you import and use in all your
application code, but they're not global in the sense of existing in a
top-level global scope.
Also, a tiny shortcut: you can do `response.content_type` instead of
`response.headers['content-type']` (and there are similar attributes
for other HTTP headers).