Bob Ippolito's py2app package (which wraps up Python applications into
standard Mac .app bundles) has a separate script/command-line tool
called macho_standalone, which scans an app bundle and rewrites all the
linker bits so that the dylibs in the app bundle are self-contained. It
runs install_name_tool on them, IIRC. You may want to Google for
"macho_standalone" to find the most recent version and documentation.