StandardError is removed from Python 3