Adapting to the move of the script and opcode types in the haskoin package