Fix "import name 'exceptions' is not defined" error
Move InputError from transaction.py to script.py