Migrate to bitcoin from pybitcointools. Fix #552.