Take editor buttons to python interface