Merge pull request #1 from jackjennings/master

update from master
Merge pull request #2 from jackjennings/master

update from master
close an open file

Python has a limit on open file handlers
see
http://stackoverflow.com/questions/6774724/why-python-has-limit-for-coun
t-of-file-handles
Merge pull request #2 from typemytype/master

close open registry file