trigrams is a trigrams-based random text generation Python module.
With pip:
[sudo] pip install trigrams