Pack-scan changes

dict comprehensions are python 2.7 or newer