A Library and Tutorial for Factored Cognition with Language Models — AI Alignment Forum