Tools: Attempt to make perf.py work with Py3
Tools: Attempt to make perf.py work with Py3

Iniquitatis/mgba,Iniquitatis/mgba,Iniquitatis/mgba,mgba-emu/mgba,Iniquitatis/mgba,libretro/mgba,mgba-emu/mgba,mgba-emu/mgba,libretro/mgba,libretro/mgba,libretro/mgba,libretro/mgba,mgba-emu/mgba