more python3 compat work