Update gsearch.py

fix mismatch argument issue in function writeFile() in class SearchResult