Conform to Python idioms