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