fix python3 compatibility of unreferenced_files 

dict.iterkeys() does not exist in python 3. Replacing iterkeys() with
` for key in dictionary: pass ` is both pythonic and cross version
compatible
Merge pull request #511 from pmav99/patch-1

fix python3 compatibility of unreferenced_files