fix: exception syntax to make it py3k compatible