The easiest way to install SPID is using pip:
$ pip install spid
$ git clone git@bitbucket.org:incpm/spid.git
To read some more on SPID’s implementation, you are welcome to read this page