Repair import sort in pkgtest.py