Added python27 specif code for invocation of event queue factory
Two small changes to make this branch equal to develop, modulo the Python version