This is based upon the singleton class from tendo which is under the Python Software Foundation License version 2
singleinstance
Bases: object
object
Implements a single instance application by creating a lock file at appdata.
lock
Obtain single instance lock
cleanup
Release single instance lock