fix portage-2 repo format test for python3