more python3 compat in progress