core: fix python3