fix buitins for python3 compat