Fixed opcode update script to be python 2/3 agnostic.