additional parameter inner_cls https://github.com/petertodd/python-bitcoinlib/blob/master/bitcoin/core/serialize.py#L237