Check If Script Is already Running - Python

http://pythonhosted.org/tendo/

from tendo.singleton import SingleInstance

# If is there another instance already running:
# display the message "Another instance is already running, quitting.", and raise SingleInstanceException.
me = SingleInstance()