Making Python a bit more idiomatic.