fix 4 space idents
code reducing thanks to xarvh
No need to check if 'r' is None (already checked in _items() and more
explicit names for r (thanks xarvh).

About the '\' I guess it depends on the style.
Line is 79 chars
more pythonesc loop
re-identation
re-ident and more pythonesc loop
pep8++