Clone or Download project as a zip file and import to your python environment
Edit "Instruction.txt" file and insert your binary codes like this:
00000001000010010101000000100000
00010001001010100000000000000011
00000001000010010101000000100010
Just import CPU.py to your main file and create MIPS CPU:
import CPU
mips = CPU.MIPS('instruction.txt')
Please check opcodes.py and functs.py that is equivalent with your architecture.