Update from_file.py

The function should open `filename` instead of `sys.argv[-1]`