make a compat file for python3