Flavin is a tool to prune  all modules down to the minimal amount of code required to support a single top level python program.