#!/usr/local/bin/python3 import subprocess; subprocess.check_output(['lsof', '-wXFn', '+p', str(pid)], stderr=DEVNULL)