bugfix for py3 on raise