Pack-scan changes

open() is preferred over file() https://docs.python.org/2/library/functions.html#file