Python module import analysis tool
copied from cf-staging / findimportsFindImports extracts Python module dependencies by parsing source files. It can report names that are imported but not used, and it can generate module import graphs in ASCII or graphviz formats.