Update python grammar