Adding python callback function and passing reference to it into emulator in the test suites.