It has been a truly remarkable week in politics and the law in Scotland. MSPs have been debating a live criminal court case ...