Python Linear CRF