use Exception instead of StandardError which is gone from python 3.3