Updated genInstrX86.py to work with Python 3