bind python-end-of-block etc