The New Day portal lets you export your Amazon MasterCard statement as a CSV file. Unfortunately, the format used is incompatible with FreeAgent.
This script fixes that problem.
If you use Pipenv, here's how to install the dependencies, and run the script:
$ cd /path/to/project
$ pipenv install
$ pipenv run ./fix.py path/to/input.csv path/to/output.csv
If you don't use Pipenv, you're on your own. Honestly, you're on your own anyway; I have no interest in making this my life's work.
This is a very basic script, with no error checking whatsoever. Misuse may result in embarrassment, injury, or death. Exercise caution before using.