Made load_savefile() take a file instead of a filename

This allows bzip2 and gzip files to be used transparently.