Simple descent recursive parser LL(k) in python 3