add on_exit callback hook
remove iteritems() for py3k compliance
pacify sphinx
ignore generated files