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