python idomatic