added python support for spike injector