Replace classes for opcodes with getattr class