a few minor changes to pycdec

1. scaling weights on read
2. sampling returns dot and fmap in addition to string
3. rule provides an iterator over terminal spans

None of these will crash existing code.