I was inspired by the script by Simbilis and the refresh by mysteriousclam to write a script that scrapes the TSP website and writes share prices to CSV files in a format that Moneydance understands. I didn't see anything similar posted here for MD, so I thought I'd share. Hopefully someone else finds it useful.
The code is available on GitHub: https://github.com/31239899/tsp_csv_moneydance