Make python examples PEP8 compliant.

These are my proposed fixes for rethinkdb/rethinkdb#2534.
> Can you put a newline before the `.` in Python?

Only if the expression before the dot is incomplete. Otherwise, you can wrap the whole expression in parentheses like I did above.