As @steeldriver wrote in his comment, the problem you are facing is that the script you are executing is not in your `PATH`
The simple solution will be to add the prefix `./` to the script-name, assuming that you are running the command in the same folder the script is located:
cat input.dict | ./A_process.py _ | ./B_process.py _ > output.dict
Other options might be:
* Add the path of the script location into the `PATH` variable.
* Instead of `./script_name` use full-path of the script `/full/path/to/script/directory/A_process.py`