Some sort of DB or CSV would be awesome to keep track of everything.
For what purpose? This would require state being kept locally, meaning if the script is run by multiple users or from multiple machines, it would no longer be accurate.
Metadata Update from @pac23: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
closed as per discussion on irc