Fix stupid bug with for loops
Add --keys-only parameter to search.py