adding EndBlock and pyoperantrun.py features