py3: more idiomatic usage