more python3 compat stuff