A couple of years ago, I wrote an article on ITWorld about how software may provide a way to improve financial regulation.
It appears that the SEC are heading in this direction for capturing the semantics of complex financial instruments...and doing it with Python to boot.