fix for Python3 (StandardError -> Exception)