Fixed pack.py to work with python 2.4 to 3.x
Removed extraneous whitespace.