Python 3 errors in loader.py and capp_lint.py fixes #374