fixes gd in python_editing plugin