Improve makefile and __init__.py to choose between python and C++ emulator