Update error API and refactor
Add dictionary interface to source specification
SG fixes in python
c++ SG fixes and fix cython bool conversion