Combinatoric parser for Python