sfi.py: fix storing adv rspec in a file