StandardError -> Exception
Try to add some python codes [untested]