python 3 compat update