usertools: fix CPU layout with python 3