extract method 'iter_docs' from Index.dump
added a 'pprint' command that prints index in human-readable format; removed '.py' extension from all command file names to avoid import issues with commands like 'pprint' that conflict with stdlib modules