Implemented SWIG exception handling. Whenever a log_printf is called with an ERROR message, it will now throw and SWIG exception and print the message to the screen. This will come in handy for unit testing.
Added a simple unit test to check whether it will work with new exception handling capability. It works fine and is easy to implement. See unit-test/test.py for examples