another python3 compat fix