Fixed Exceptions format for py3k

This fixed might help with part of the issues on #39