add python grammar extensions