add color error messages, if termcolor module is available
improve python3 compatibility of wx-code
remove cruft