Likely mongo (see pymongo) would be a good choice for database.
The recommentAPI resource should record data to the database under a generated unique ID, and return links to the ClickTrackingAPI resource. The ClickTrackingAPI should record the click and return a redirect to the actual URL.
We'll need a tracking API, similar to what is outlined in this diff: https://github.com/fajifr/recontent/compare/tracking-psuedocode
Likely mongo (see pymongo) would be a good choice for database.
The recommentAPI resource should record data to the database under a generated unique ID, and return links to the ClickTrackingAPI resource. The ClickTrackingAPI should record the click and return a redirect to the actual URL.