Python 3 support in simulation framework