use six.reraise
fix python 2.x compatibility by using six.exec_