work around pycoin p2sh signing bugs