A emulator framework in python