Minor bug fixes.
Bad global references now point to class variables. Inversed name filter to correctly prune all but hash files. Dict iteritems method switched to items() in 3.*.
Add pycache to gitignore.