Exposed error functions in python

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>