fixed bug related to new use of python-bitcoinlib