Make python client read more like python code.

Simple cleanup here: getting rid of semicolons and adding a little
whitespace. I also changed a name that conflicts with a builtin
function.