I am looking for methods other than file locking to make sure that only one instance of a Python script is being run at the same time.
Is there a way to identify a currently running script in memory? Perhaps by setting a flag of some kind that other instances can read so they can exit?