python-engine: Match engine in the same way as file-parser