Hacked up Scala-like functional parser-generator, in Python