Made a decent attempt at setup.py

Not quite certain this is 100% correct, but methinks it's a good start