how to close a specific application in python code example Example: how to close an application from python import os os.close(filename);