The script uses os.system to execute external commands like nm and objdump. Instead we use the subprocess module, which is the recommended approach in modern Python. Properly handle potential errors if nm or objdump fail.