Update test_pack.py

Python 2.4+ compatability