[core][py] Don’t use Python 3.6 syntax for Grammalecte core