You might be interested in Charles Stross's "Accelerando", where he posits a similar system of python scripts acting as decentralized companies, constantly shuffling ownership of themselves among themselves.
It's been too long since I've read it, so I forget what the actual point was.