make python3 compat