def reraise(exc_class, exc_val, tb):
    raise exc_class, exc_val, tb