Python 3 fix for printing error messages

As there is no message attribute for Python 3 Exception instances, I cast CommandError to str instead. Yes, we can do join args here, but casting to str is much easier.