Clean up pack.py.