fix python3 compatibility of unreferenced_files

`dict.iterkeys()` does not exist in python 3. 

With this patch, we replace `iterkeys()` with ` for key in dictionary: pass ` which is both pythonic and cross version compatible.