Auto-generated poems in Python